<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>bootstrap--grid1</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
    <style>
        .row>div{
            height: 50px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="row">
            <div class=" col-md-4 ">2</div>
            <div class=" col-md-4 col-md-offset-4">3</div>
        </div>
        <div class="row" style="margin-top: 10px;">
            <div class=" col-md-8  col-md-offset-2">1</div>
        </div>
    </div>

    <div class="container" style="margin-top: 10px;">
        <div class="row">
            <div class=" col-md-4 col-md-push-8">2</div>
            <div class=" col-md-8 col-md-pull-4">3</div>
        </div>
    </div>

    <div class="container" style="margin-top: 10px;" >
        <div class="row">
            <div class="col-xs-3">1</div>
            <div class="col-xs-3 hidden-xs">2</div>
            <div class="col-xs-3 hidden-md">3</div>
            <div class="col-xs-3">4</div>

        </div>


    </div>

</body>

</html>